<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <!-- @@include ./template/base.html -->
    <link rel="stylesheet" href="./css/gsproduct.css">
</head>

<body>
    <div id="ctl00_headerApp" class="head">
        <div class="back"><a class="icon-back"></a></div>
        <h1>凑单品</h1>
        <div class="home"><a href="javascript:;" class="icon-app">
            </a></div>
    </div>

    <!-- 中间部分 -->
    <main class="gs-product">
        <div class="list">
            <div class="hd">
                <div class="filter">
                    <ul>
                        <li class="on" data-id="getgsshop">
                            <a class="shop">京东 <i></i></a>
                        </li>
                        <li class="on" data-id="getgsshoparea">
                            <a class="shop">华北 <i></i></a>
                        </li>
                        <li class="on">
                            <a class="shop">全部价格 <i></i></a>
                        </li>
                    </ul>
                </div>
                <div class="search"><i class="icon-search"></i></div>
                <div id="shop" class="popsort popbox">
                    <ul>
                            <!-- getgsshop 模板渲染 -->
                            <!-- getgsshoparea  模板渲染 -->
                    </ul>
                </div>
            </div>
            <div class="bd gs-product-list">
                <ul id="container" class="masonry" style="position: relative; height: 0px;">
                    <!-- 模板渲染 -->
                
                </ul>
                <div class="clearfix"></div>
            </div>
        </div>
    </main>

    <!-- @@include ./template/footer.html -->

    <script src="./js/gsproduct.js"></script>
    <script type="text/template" id="getgsshopTpl">
        {{ each result  v i }}  
            <li class="" data-id="{{v.shopId }}">
                <a>{{v.shopName}}</a>
            </li>
        {{ /each }}
    </script>
    <script type="text/template" id="getgsshopareaTpl">
        {{ each result  v i }}
             <li class="" data-id="{{v.areaId}}">
                 <a>{{v.areaName}}</a>
            </li>
        {{ /each }}
    </script>
    <script type="text/template" id="getgsproductTpl">
        {{ each result  v i }}
             <li>
                <a href="http://item.m.jd.com/ware/view.action?wareId=1274360" class="item border-img">
                    <div class="pic"><img
                            src="{{v.productImg}}"
                            style="width: 174px; height: 174px;"></div>
                    <div class="title">{{v.productName}}</div>
                    <div class="other">
                        <div class="price">{{v.productPrice}}</div>
                        <div class="btn">去凑单</div>
                        <div class="clearfix"></div>
                    </div>
                </a>
            </li>
        {{ /each }}
    </script>

</body>

</html>